-- GENERATED SPELL FOR [Burning Blade Adept] --


function spell0_4665(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4665', 30293, 1)
end

function spell1_4665(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4665', 3000, 1)
end

function Sorts_4665(pUnit, Event)
local choix_sorts_4665 = math.random(0, 1)
if choix_sorts_4665 == 0 then
pUnit:RegisterEvent('spell0_4665', 1, 1)
end
if choix_sorts_4665 == 1 then
pUnit:RegisterEvent('spell1_4665', 1, 1)
end
end

function mob4665_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4665', math.random(1500, 3000), 1)
end

function mob4665_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4665_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4665_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4665, 1, 'mob4665_Action')
RegisterUnitEvent(4665, 2, 'mob4665_Leave')
RegisterUnitEvent(4665, 3, 'mob4665_Kill')
RegisterUnitEvent(4665, 4, 'mob4665_Die')
